package com.liqing.example.provider;

import com.liqing.example.common.service.UserService;
import com.liqing.lqrpc.registry.LocalRegistry;
import com.liqing.lqrpc.server.HttpServer;
import com.liqing.lqrpc.server.VertxHttpServer;

/**
 * TODO 简易服务提供者示例
 *
 * @author Li Qing
 * @date 2024/7/3 23:57
 */
public class EasyProviderExample {
    public static void main(String[] args) {
        //注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);
        //提供服务
        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8080);
    }
}
